<div class="page-header">
<h1>会員登録</h1>
</div>

<SCRIPT LANGUAGE="JavaScript">
<!--
function check_id() {
window.open("customer/search_id?login_id=" + document.customer.login_id.value, "", "width=380,height=250,scrollbars=auto,location=no");
}

function check_pwd() {
  if( document.customer.password.value != document.customer.repassword.value )
  {
    alert("password do not match");
    document.customer.password.value="";
    document.customer.repassword.value="";
    document.customer.password.focus();
    return(false);
  }

}
function postwinopen() {
	window.open("search_post.php","_box","width=550, height=200,scrollbars=yes");
}

// --></SCRIPT>

<form class="form-horizontal" role="form" name="customer" action="<?php echo base_url(); ?>index.php/customer/check" method="post">



	<!-- id -->
	<div class="form-group">
		<label for="login_id" class="col-sm-2 control-label">ID</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" id="login_id" name="login_id" value="<?php echo empty($login_id)?"":$login_id;?>" placeholder="ID">
		</div>
		<div>
			<button type="button" class="btn btn-default" onclick="check_id()">check</button>
		</div>
	</div>

	<!-- password -->
	<div class="form-group">
		<label for="password" class="col-sm-2 control-label">PASSWORD</label>
		<div class="col-sm-4">
			<input type="password" class="form-control" id="password" name="password" value="" placeholder="PASSWORD">
		</div>
	</div>

	<!-- repassword -->
	<div class="form-group">
		<label for="repassword" class="col-sm-2 control-label">PASSWORD</label>
		<div class="col-sm-4">
			<input type="password" class="form-control" id="repassword" name="repassword" value="" onBlur="check_pwd()" placeholder="REPASSWORD">
		</div>
	</div>

	<!-- email -->
	<div class="form-group">
		<label for="email" class="col-sm-2 control-label">EMAIL</label>
		<div class="col-sm-6">
			<?php if (empty($email)): ?>
				<input type="email" class="form-control" id="email" name="email" value="" placeholder="EMAIL">
			<?php else: ?>
				<input type="email" class="form-control" id="email" name="email" value="<?=$email?>" style="background-color:lavenderblush;">
			<?php endif; ?>
		</div>
	</div>

	<!-- first_name -->
	<div class="form-group">
		<label for="first_name" class="col-sm-2 control-label">性</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" id="first_name" name="first_name" value="<?php echo empty($first_name)?"":$first_name;?>" placeholder="性">
		</div>
	</div>

	<!-- last_name -->
	<div class="form-group">
		<label for="last_name" class="col-sm-2 control-label">名</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" id="last_name" name="last_name" value="<?php echo empty($last_name)?"":$last_name;?>" placeholder="名">
		</div>
	</div>

	<!-- first_name_kana -->
	<div class="form-group">
		<label for="first_name_kana" class="col-sm-2 control-label">性（カナ）</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" id="first_name_kana" name="first_name_kana" value="<?php echo empty($first_name_kana)?"":$first_name_kana;?>" placeholder="性（カナ）">
		</div>
	</div>

	<!-- last_name_kana -->
	<div class="form-group">
		<label for="last_name_kana" class="col-sm-2 control-label">名（カナ）</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" id="last_name_kana" name="last_name_kana" value="<?php echo empty($last_name_kana)?"":$last_name_kana;?>" placeholder="名（カナ）">
		</div>
	</div>


  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <div class="checkbox">
        <label>
          <input type="checkbox"> Remember me
        </label>
      </div>
    </div>
  </div>

  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default">登録する</button>
    </div>
  </div>

</form>

